package com.lagou.dao;

import com.lagou.pojo.User;
import org.dom4j.DocumentException;

import java.beans.PropertyVetoException;
import java.util.List;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/12/7 15:56
 */
public interface UserDao {

    /**
     * 查询所有对象
     * @param
     * @return
     */
    List<User> selectList() throws Exception;

    /**
     * 查询单个对象
     *
     * @param user 用户
     * @return {@link User}
     */
    User selectOne(User user) throws PropertyVetoException, DocumentException, Exception;
}
